﻿#region Copyright 
/*-------------------------------------------------------------------------
* 命名空间名称/文件名:    SSPivot.Data.Entities/AuditedModifyEntity 
* CLR版本:     4.0.30319.42000
* 机器名称:    DESKTOP-NHMLO8A
* 功 能：       N/A
* 类 名：       AuditedModifyEntity
* 创建时间：  2025/5/22 11:51:47
* 版本号：      v1.0
* 创建人:        xulong
*-------------------------------------------------------------------------*/
#endregion
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SSPivot.Data.Entities
{
    public interface IAuditedModifyEntity:IAuditedCreatedEntity
    {
        DateTime? LastModifyTime { get; set; }
        long? LastModifierId { get; set; }
        string? LastModifier { get; set; }
    }
    public abstract class AuditedModifyEntity : AuditedCreateEntity, IAuditedModifyEntity
    { 
        public virtual DateTime? LastModifyTime { get; set; }
         
        public virtual long? LastModifierId { get; set; }
        [MaxLength(50)]
        public virtual string? LastModifier { get; set; }
    }
    public abstract class AuditedEntity<TKey> : AuditedCreateEntity<TKey>, IAuditedModifyEntity
    { 
        public virtual DateTime? LastModifyTime { get; set; }
         
        public virtual long? LastModifierId { get; set; }
        [MaxLength(50)]
        public virtual string? LastModifier { get; set; }
    }
}
